package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName tb_ord_matl
 */
@Data
public class TbOrdMatl implements Serializable {
    /**
     *
     */
    @TableField(exist = false)
    private Long id;

    /**
     * 訂單id
     */
    private Long oid;
    /**
     * id
     */
    @TableId(value = "correlation_id", type = IdType.AUTO)
    private Long correlationId;

    /**
     * 物料id
     */
    private Long matiId;
    /**
     * 物料实体类
     */
    @TableField(exist = false)
    private TbMaterial tbMaterial;

    /**
     * 订单数
     */
    private Long orderPcs;
    /**
     * 订单缺数量
     */
    private Long lackPcs;
    /**
     * 全部重量
     */
    private Double weight;
    /**
     * 需要重量
     */
    private Double needWeight;
    /**
     * 订单完成数
     */
    private Long finishQuantity;
    /**
     * 未完成订单数
     */
    private Long unFinishQuantity;
    /**
     * 交期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date delivery;
    /**
     * 选中
     */
    @TableField(exist = false)
    private boolean selected;
}